package com.juzi.operator;

public class OperatorDemo1 {
    public static void main(String[] args) {
        //目标：掌握基本算术运算符的使用：+、-、*、/、%
        int a =10;
        int b = 3;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a / b);//3.3333 ==>  3
        System.out.println(a * 1.0 / b);
        System.out.println(3 / 2);
        System.out.println(3 * 1.0 / 2);
        System.out.println(1.0 * 3 / 2);
        System.out.println(a % b);//1
    }
}
